<%@ page language="java" contentType="application/json; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.number.dao.StudentDao"%>
<%@ page import="com.number.bean.Page"%>
<%@ page import="com.number.bean.Student"%>
<%
    request.setCharacterEncoding("utf-8");
    response.setCharacterEncoding("utf-8");

    int start = 0;
    int limit = 0;
    start = Integer.parseInt(request.getParameter("start"));
    limit = Integer.parseInt(request.getParameter("limit"));
    String sort = request.getParameter("sort");
    String dir = request.getParameter("dir");

    StudentDao stuDao = StudentDao.getInstance();
    Page pager = stuDao.pagedQuery(null, start, limit, null, null);

    out.print(pager.toString());
%>
